package com.info.zhiduoduo.common.baidusdk.domain;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BankcardResponse {

	@JsonProperty("data")
	private DataDTO data;
	@JsonProperty("msg")
	private String msg;
	@JsonProperty("success")
	private Boolean success;
	@JsonProperty("code")
	private Integer code;
	@JsonProperty("taskNo")
	private String taskNo;

	@NoArgsConstructor
	@Data
	public static class DataDTO {

		@JsonProperty("order_no")
		private String orderNo;
		@JsonProperty("bank")
		private String bank;
		@JsonProperty("province")
		private String province;
		@JsonProperty("city")
		private String city;
		@JsonProperty("card_name")
		private String cardName;
		@JsonProperty("tel")
		private String tel;
		@JsonProperty("type")
		private String type;
		@JsonProperty("logo")
		private String logo;
		@JsonProperty("abbreviation")
		private String abbreviation;
		@JsonProperty("card_bin")
		private String cardBin;
		@JsonProperty("bin_digits")
		private Integer binDigits;
		@JsonProperty("card_digits")
		private Integer cardDigits;
		@JsonProperty("isLuhn")
		private Boolean isLuhn;
		@JsonProperty("weburl")
		private String weburl;
	}
}
